<?php 
/**
 * Gallery Edit Album
 *
 * @package Bd Gallery
 * @author Bebliuc George Cristian
 * @author Gianfranco Liporace
 * @copyright 2008-2010
 * @version 1.3
 * @access public
 * @permisions Modify, Redistribute but leave the credits alive :P
 * @use Noncommercial, for commercial use, please contact me at bebliuc.george@gmail.com, it's for free, but I need to know
 *
 */

$category = Category::findById($id);
?>
<h1><?php echo __('Edit Album'); ?></h1>
<form method="POST" action="<?php echo get_url('plugin/gallery/_edit_album'); ?>">
    <div class="form-area">
        <p class="title">
            <label for="name"><?php echo __('Album Title'); ?></label>
            <input type="text" name="name" class="textbox" value="<?php echo $category->getName(); ?>" /><br />
            <label for="description"><?php echo __('Album Description'); ?></label>
            <textarea name="description" class="textarea"><?php echo $category->getDescription(); ?></textarea><br />
            <label for="tags"><?php echo __('Tags'); ?></label>
            <input type="text" name="tags" class="textbox" value="<?php echo $category->getTags(); ?>">
            <input type="hidden" name="id" value="<?php echo $id; ?>" />
        </p>
    </div>
    <p class="buttons">
        <input class="button" type="submit" value="<?php echo __('Save'); ?>" />
        <input class="button" type="reset" value="<?php echo __('Reset'); ?>"/>
        <input class="button" type="button" onclick='window.location.href = "<?php echo get_url('plugin/gallery/index'); ?>";' value="<?php echo __('Cancel'); ?>" />
    </p>
</form>
